Skip to content

Conversation

akarnokd
Copy link
Member

This PR allows to fix the same-pool deadlock that may happen with create() (formerly fromEmitter) and subscribeOn as subscribeOn by default schedules the requests behind a running emitter and thus the internal request amount may not get updated, leading to unnecessary dataloss.

See #4735.

In the update, if subscribeOn detects its upstream is OnSubscribeCreate, it no longer reschedules requests for it. For other, non-immediate cases, a new overload allows specifying the requestOn parameter that should be false if there is a create(Action1, BackpressureStrategy) in the sequence upstream.

@akarnokd akarnokd added this to the 1.3 milestone Feb 10, 2017
@akarnokd akarnokd merged commit 828db38 into ReactiveX:1.x Feb 11, 2017
@akarnokd akarnokd deleted the SubscribeOnRequestOn branch February 11, 2017 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants